<%@page import="java.util.List,java.util.Iterator,com.crm.entity.Business" %>
<%@ include file="common/submenu.jsp" %>
      <% Business company=(Business)request.getAttribute("company"); %>

      <%System.out.println("the list of comany in else tag is "+company);%>
      
    <form id="editCompanyForm" action="<%=application.getContextPath()%>/company/editsave.do" method="post">
      
      <div class="heading">Edit Company</div>
	  
      <div class="box" >
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="366"><table width="348" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td width="44">&nbsp;</td>
                <td width="137">&nbsp;</td>
                <td width="167">&nbsp;</td>
              </tr>
              <tr>
                <td height="28">&nbsp;</td>
                <td align="left" valign="top">Company Name</td>
                <td align="left" valign="top">
                
                <input name="editName" type="text" id="name"  class="form" value="<%=company.getBusinessName()%>" />
               
                 
                
                </td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">TIN No </td>
                <td align="left" valign="top"><input name="tinNo" type="text" id="tinno" class="form" value="<%=company.getTinno() %>" /></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">CST No </td>
                <td align="left" valign="top"><input name="cstNo" type="text" id="cstNo" class="form" value="<%=company.getCstno() %>" /></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">PAN No </td>
                <td align="left" valign="top"><input name="panNo" type="text" id="panNo" class="form" value="<%=company.getPanno() %>" /></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">Fax</td>
                <td align="left" valign="top"><input name="fax" type="text" id="fax" class="form" value="<%=company.getFax()%>" /></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">Email</td>
                <td align="left" valign="top"><input name="email" type="text" class="form" id="email" value="<%=company.getEmail() %>" /></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">MICR No </td>
                <td align="left" valign="top"><input name="micr" type="text" class="form" id="micr" value="<%=company.getMicr() %>" /></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">Company Logo </td>
                <td align="left" valign="top"><input name="logo" type="file" class="form-small" value="" />
                  </td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
                <td align="left" valign="top">&nbsp;</td>
              </tr>
              
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
            </table></td>
            <td width="330" align="left" valign="top"><table width="348" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
              </tr>
              <tr>
                <td width="44">&nbsp;</td>
                <td align="left" valign="top">Address</td>
                <td align="left" valign="top"><textarea name="address" class="form-textarea" id="address"><%=company.getAddress()%></textarea></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">Phone Number</td>
                <td align="left" valign="top"><input name="phone" type="text" class="form" id="phoneNo" value="<%=company.getPhone()%>" /></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">Short Name </td>
                <td align="left" valign="top"><input name="shortName" id="shortName" type="text" class="form" value="<%=company.getShortname() %>" /></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td align="left" valign="top">IFSC Code </td>
                <td align="left" valign="top"><input name="ifsc" type="text" id="ifsc" class="form" value="<%=company.getIfsc() %>" /></td>
              </tr>
              <tr>
                <td height="5"></td>
                <td height="5" align="left" valign="top"></td>
                <td height="5" align="left" valign="top"></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>Account No </td>
                <td><input name="accountNo" type="text" class="form" id="accNo" value="<%=company.getAccno() %>" /></td>
              </tr>
              <tr>
                <td>&nbsp;</td>
                <td>&nbsp;</td>
                <td>&nbsp;<input name="companyid" type="hidden" value="<%=company.getBusinessId()%>"></td>
                
              </tr>
            </table></td>
            
          </tr>
        </table>
      
      </div>
	   
	  <div class="box2">
	    <table width="698" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="51">&nbsp;</td>
            <td width="135" align="left" valign="top">Terms &amp; Conditions </td>
            <td width="512"><textarea name="tAndC" class="form-textarea1" id="tAndC" ><%=company.getTandc() %></textarea></td>
          </tr>
        </table>
	  </div>
	  <div class="box2">
	    <div class="buttton-main">
	    <input class="button" type="submit" value="Update" onclick="javascript:return validate();"/>
	    <input class="button" type="reset" value="Clear"/>
	   </div></div>
	    </form>